/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package domain;

import domain.Game.direction;
import java.util.Scanner;

/**
 *
 * @author shaigi
 */
public class AgentHuman extends Agent {
    public AgentHuman(String name,direction lastDirection) {
        super(name, lastDirection);
        
    }
    @Override
    public void die() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void play() {
        direction lastDirection = getLastDirection();
        Square nextSquare = null;
         nextSquare = getSquareFromUser();



        throw new UnsupportedOperationException("Not supported yet.");
    }


    private boolean checkLocation(int location) {
        throw new UnsupportedOperationException("Not yet implemented");
    }

    //TODO: complete this method
    private Square getSquareFromUser() {
        Scanner reader=new Scanner(System.in);
        boolean validLocation=false;
        while(validLocation==false){
            System.out.println("Please enter the number of square you would like to move to");
            int location=reader.nextInt();
            validLocation=checkLocation(location);
            if(!validLocation){
                System.out.println("not a valid location!");
            }
            else{

            }
        }
        throw new UnsupportedOperationException("Not yet implemented");
    }

    private boolean isIcy(int location) {
        throw new UnsupportedOperationException("Not yet implemented");
    }
}
